//
//  SEGSharedNeihborhoodInfoModel.m
//  ExcellentHome
//
//  Created by 揭婧雯 on 2017/10/19.
//  Copyright © 2017年 陈区. All rights reserved.
//

#import "SEGSharedNeihborhoodInfoModel.h"
#if __has_include(<Commom/YYBaseHeader.h>)
#import <Commom/YYBaseHeader.h>
#else
#import "YYBaseHeader.h"
#endif

#if __has_include(<Commom/SEGHTTPBusinessManager.h>)
#import <Commom/SEGHTTPBusinessManager.h>
#else
#import "SEGHTTPBusinessManager.h"
#endif

@implementation SEGSharedNeihborhoodInfoModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    self = [super init];
    if (self) {
        _objType = @"";
        _shareId = @"";
        _time = @"";
        _title = @"";
        _unitName = @"";
        _communityName = @"";
        _picture = [NSArray array];
        _shareTitle = @"";
        _objId = @"";
        _marketType = @"";
        _rent = @"";
        _isChange = @"";
        _id = @"";
        _marketPrice = @"";
        _desposit = @"";
        _commentCount = @"";
        _operationType = @"";
        _salePrice = @"";
        _browseCount = @"";
        _praiseCount = @"";
        _isShare = @"";
        _content = @"";
        _isPraise = @"";
        _sharePicture = @"";
        _pgcType = @"";
        _isBroadCast = @"";
        _channelId = @"";
        _channelName = @"";
        _communityId = @"";
        _cName = @"";
        [self setValuesForKeysWithDictionary:dictionary];
    }
    return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
    return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forKey:(NSString*)key
{
    if ([key isEqualToString:@"picture"]) {
        if ([value isKindOfClass:[NSArray class]]) {
            NSMutableArray* _arrM = [NSMutableArray array];
            NSMutableArray* _arrM2 = [NSMutableArray array];
            for (NSString* str in value) {
                [_arrM addObject:str];
                [_arrM2 addObject:[NSString stringWithFormat:@"%@%@",kClientImageRootURL,str]];
            }
            _picture = _arrM.copy;
            _picturesArray = _arrM2.copy;
        }
    }
    
    [super setValue:value forKey:key];
}

- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setObjType:(NSString*)objType{
    _objType = [[SEGUtils ValueToString:objType]copy];
}
- (void)setShareId:(NSString*)shareId{
    _shareId = [[SEGUtils ValueToString:shareId]copy];
}
- (void)setTime:(NSString*)time{
    _time = [[SEGUtils ValueToString:time]copy];
}
- (void)setTitle:(NSString*)title{
    _title = [[SEGUtils ValueToString:title]copy];
}
- (void)setUnitName:(NSString*)unitName{
    _unitName = [[SEGUtils ValueToString:unitName]copy];
}
- (void)setCommunityName:(NSString*)communityName{
    _communityName = [[SEGUtils ValueToString:communityName]copy];
}
- (void)setShareTitle:(NSString*)shareTitle{
    _shareTitle = [[SEGUtils ValueToString:shareTitle]copy];
}
- (void)setObjId:(NSString*)objId{
    _objId = [[SEGUtils ValueToString:objId]copy];
}
- (void)setMarketType:(NSString*)marketType{
    _marketType = [[SEGUtils ValueToString:marketType]copy];
}
- (void)setRent:(NSString*)rent{
    _rent = [[SEGUtils ValueToString:rent]copy];
}
- (void)setIsChange:(NSString*)isChange{
    _isChange = [[SEGUtils ValueToString:isChange]copy];
}
- (void)setId:(NSString*)id{
    _id = [[SEGUtils ValueToString:id]copy];
}
- (void)setMarketPrice:(NSString*)marketPrice{
    _marketPrice = [[SEGUtils ValueToString:marketPrice]copy];
}
- (void)setDesposit:(NSString*)desposit{
    _desposit = [[SEGUtils ValueToString:desposit]copy];
}
- (void)setCommentCount:(NSString*)commentCount{
    _commentCount = [[SEGUtils ValueToString:commentCount]copy];
}
- (void)setOperationType:(NSString*)operationType{
    _operationType = [[SEGUtils ValueToString:operationType]copy];
}
- (void)setSalePrice:(NSString*)salePrice{
    _salePrice = [[SEGUtils ValueToString:salePrice]copy];
}
- (void)setBrowseCount:(NSString*)browseCount{
    _browseCount = [[SEGUtils ValueToString:browseCount]copy];
}
- (void)setPraiseCount:(NSString*)praiseCount{
    _praiseCount = [[SEGUtils ValueToString:praiseCount]copy];
}
- (void)setIsShare:(NSString*)isShare{
    _isShare = [[SEGUtils ValueToString:isShare]copy];
}
- (void)setContent:(NSString*)content{
    _content = [[SEGUtils ValueToString:content]copy];
}
- (void)setIsPraise:(NSString*)isPraise{
    _isPraise = [[SEGUtils ValueToString:isPraise]copy];
}
- (void)setSharePicture:(NSString *)sharePicture{
    _sharePicture = [[SEGUtils ValueToString:sharePicture]copy];
}
- (void)setPgcType:(NSString *)pgcType{
    _pgcType = [[SEGUtils ValueToString:pgcType]copy];
}
- (void)setIsBroadCast:(NSString *)isBroadCast{
    _isBroadCast = [[SEGUtils ValueToString:isBroadCast]copy];
}

- (void)setChannelId:(NSString *)channelId{
    _channelId = [[SEGUtils ValueToString:channelId] copy];
}

- (void)setChannelName:(NSString *)channelName{
    _channelName = [[SEGUtils ValueToString:channelName] copy];
}
- (void)setCommunityId:(NSString *)communityId{
    _communityId = [[SEGUtils ValueToString:communityId] copy];
}

- (void)setCName:(NSString *)cName{
    _cName = [[SEGUtils ValueToString:cName] copy];
}

@end

